package org.trade.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.trade.entity.TradeGoods;
import org.trade.entity.TradeGoodsExample;

public interface TradeGoodsMapper {
    long countByExample(TradeGoodsExample example);

    int deleteByExample(TradeGoodsExample example);

    int insert(TradeGoods record);

    int insertSelective(TradeGoods record);

    List<TradeGoods> selectByExample(TradeGoodsExample example);

    int updateByExampleSelective(@Param("record") TradeGoods record, @Param("example") TradeGoodsExample example);

    int updateByExample(@Param("record") TradeGoods record, @Param("example") TradeGoodsExample example);

	TradeGoods selectByPrimaryKey(Integer goodsId);

	int reduceGoodsNumber(TradeGoods tradeGoods);
}